package com.csk.zsk.compents.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.csk.zsk.commons.dao.impl.BaseHibernateDao;
import com.csk.zsk.compents.dao.CodeDao;
import com.csk.zsk.compents.entity.Code;

@Repository
public class CodeDaoImpl extends BaseHibernateDao<Code, String> implements CodeDao {

	private static final String QUERY_CODE_BY_GROUPNO = "from Code c where c.codeGroup.groupNo = ? order by c.orderBy";

	public List<Code> searchCodeByGroupNo(String groupNo) {
		return find(QUERY_CODE_BY_GROUPNO, groupNo);
	}
}
